// Copyright DustedPixels.com 2008. All rights reserved.

package com.dustedpixels.jasmin.cycletest;

/**
 * @author micapolos@gmail.com (Michal Pociecha-Los)
 */
public final class CompiledStatic {
  public static byte value = 0; 

  private static boolean reading = true;
  private static byte temp = 0;
  
  public static void process(int cycles) {
    while (cycles-- != 0) {
      if (reading) {
        temp = value;
        reading = false;
      } else {
        temp++;
        value = temp;
        reading = true;
      }
    }
  }
}
